/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tracksuite.integration;

import java.io.Serializable;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;

/**
 *
 * @author mfloriano
 */
public abstract class GenericDAO <TO extends GenericTO, ID extends Serializable>  {

    private EntityManager em;
    
    public void setEntityManagerFactory(EntityManagerFactory emf){
        this.em = emf.createEntityManager();
    }
    /*
    abstract TO findById(ID id);
    abstract List<TO> findAll();
    abstract TO insert(TO to);
    abstract TO update(TO to);
    abstract boolean delete(ID id);*/
    
}
